import Layout from '@/pages/public/layout' // 公共部分

const advert = [{
  path: '/market/advert',
  component: Layout,
  children: [{
    path: 'list',
    component: () => import('@/pages/market/advert/index.vue'),
    meta: {
      title: '广告图管理',
      permission: 'market.advert'
    }
  }, {
    path: 'create',
    component: () => import('@/pages/market/advert/create.vue'),
    meta: {
      title: '广告图-新建',
      permission: 'market.advert'
    }
  }, {
    path: ':id/edit',
    component: () => import('@/pages/market/advert/edit.vue'),
    meta: {
      title: '广告图-编辑',
      permission: 'market.advert'
    }
  }, {
    path: ':id/manage',
    component: () => import('@/pages/market/advert/manage/index.vue'),
    meta: {
      title: '广告内容管理',
      permission: 'market.advert'
    }
  }, {
    path: ':id/manage/create',
    component: () => import('@/pages/market/advert/manage/create.vue'),
    meta: {
      title: '广告内容-新建',
      permission: 'market.advert'
    }
  }, {
    path: ':id/manage/:link_id(\\d+)/edit',
    component: () => import('@/pages/market/advert/manage/edit.vue'),
    meta: {
      title: '广告内容-编辑',
      permission: 'market.advert'
    }
  }]
}]

export default advert
